package com.ciaojian.worker.controller;

import com.ciaojian.core.util.Result;
import com.ciaojian.worker.service.TagServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Atlakyn
 */
@Api(tags = "标签")
@RestController
@RequestMapping("/tag")
public class TagController {
    @Resource
    private TagServiceImpl tagService;

    @ApiOperation("获取标签")
    @GetMapping
    public Result getTags() {
        return Result.ok(tagService.getBaseMapper().getTag());
    }

}
